#ifndef SELECTTIME_H
#define SELECTTIME_H

#include <QWidget>

#include "bdaqctrl.h"
using namespace Automation::BDaq;


namespace Ui {
class SelectTime;
}

class SelectTime : public QWidget
{
    Q_OBJECT

public:
    explicit SelectTime(QWidget *parent = nullptr);
    ~SelectTime();

    void CheckError(ErrorCode errorCode);
private slots:
    void on_hour_dial_sliderMoved(int position);

    void on_minute_dial_sliderMoved(int position);

    void on_hour_spinBox_valueChanged(int arg1);

    void on_minute_spinBox_valueChanged(int arg1);

    void slot_RadioBtnChanged();
    void on_OK_btn_clicked();

private:
    Ui::SelectTime *ui;
    int radioTime;
    int spinTimeHour = 0;
    int spinTimeMinute = 0;
};

#endif // SELECTTIME_H
